package com.suncaper.wcss.mapper;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.suncaper.wcss.model.domain.Application;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.suncaper.wcss.model.vo.ApplicationVO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 申请表 Mapper 接口
 * </p>
 *
 * @author lxp
 * @since 2021-11-16
 */
public interface ApplicationMapper extends BaseMapper<Application> {


    Page<ApplicationVO> teacherAppList(@Param("page") Page<ApplicationVO> page, @Param("application")Application application, @Param("list")List<String> clazzSn);

    Page<ApplicationVO> conllegeAppList(@Param("page")Page<ApplicationVO> page, @Param("application")Application application, @Param("list")List<String> collegeSn);

    Page<ApplicationVO> schoolAppList(@Param("page")Page<ApplicationVO> page, @Param("application")Application application);

    Page<ApplicationVO> stuAppList(Page<ApplicationVO> voPage, Application application);

    ApplicationVO getBySnAndBatchId(@Param("sn")String sn, @Param("id")Long id);
}
